// pages/popAdThree/index.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        show: true,
        haveNavBar: 50,
        imgUrl: "../assets/images/payLogo.png",
        money: "30",
        bannerAd: {
            bannnerImg: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=ede690e9ee6692d5cbc169e771566c14&filekey=30340201010420301e02016d040253480410ede690e9ee6692d5cbc169e771566c14020300ed43040d00000004627466730000000131&hy=SH&storeid=32303139313031343138333134363030303738366161313336666664393336663561333230613030303030303664&bizid=1023",
            type: ""
        },
        listAd: {
            logo: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=ede690e9ee6692d5cbc169e771566c14&filekey=30340201010420301e02016d040253480410ede690e9ee6692d5cbc169e771566c14020300ed43040d00000004627466730000000131&hy=SH&storeid=32303139313031343138333134363030303738366161313336666664393336663561333230613030303030303664&bizid=1023",
            mainTitle: "免减券",
            subtitle: "满99立减50",
            type: "ad",
            buttonName: "查看免减券"
        },
        isShowPop: false,
        popAd: {
            popImg: "http://wxsnsdythumb.wxs.qq.com/109/20204/snsvideodownload?m=ede690e9ee6692d5cbc169e771566c14&filekey=30340201010420301e02016d040253480410ede690e9ee6692d5cbc169e771566c14020300ed43040d00000004627466730000000131&hy=SH&storeid=32303139313031343138333134363030303738366161313336666664393336663561333230613030303030303664&bizid=1023",
            type: "pop-ad"
        },
    },

    //点击查看广告图
    clickAd: function (e) {
        this.setData({
            isShowPop: true
        })
        console.log('type：',e.currentTarget.dataset.type)
    },

    //关闭广告放大图
    closePop: function (e) {
        this.setData({
            isShowPop: false
        })
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})